import {SearchVO} from "@/typings";
import requestWithToken from "@/utils/request";

export const listProduct = (search:SearchVO) => {
    return requestWithToken("/product/list", "GET", search);
};
export const deleteProduct = (id: string) => {
    return requestWithToken("/product/delete", "GET", { id });
};
export const saveProduct = (data: any) => {
    return requestWithToken("/product/save", "POST", data);
};
export const getProduct = (id: string) => {
    return requestWithToken("/product/get", "GET", { id });
};
